package com.info33.platform.system.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统 - 中国省市区行政信息
 * 
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDistricts extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级城市区域编码")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "区域编码")
    private String regionCode;

    @ApiModelProperty(value = "行政区名称")
    private String name;

    @ApiModelProperty(value = "行政区边界坐标点")
    private String borderCoordinate;

    @ApiModelProperty(value = "区域中心点")
    private String centerCoordinate;

    @ApiModelProperty(value = "行政区划级别")
    private String level;


}